package cn.cloudreal.cbms.fault.service.impl;

import java.util.List;
import java.util.Map;

import cn.cloudreal.cbms.common.util.PageBean;
import cn.cloudreal.cbms.fault.dao.FaultDao;
import cn.cloudreal.cbms.fault.service.FaultService;
import cn.cloudreal.cbms.vo.Fault;

public class FaultServiceImpl implements FaultService {

	/** dao */
	private FaultDao faultDao;

	public void setFaultDao(FaultDao faultDao) {
		this.faultDao = faultDao;
	}

	public void addFault(Fault fault) {
		// TODO Auto-generated method stub
		faultDao.addFault(fault);
	}

	public void deleteFault(Fault fault) {
		// TODO Auto-generated method stub
		faultDao.deleteFault(fault);
	}

	public Fault detailFault(Fault fault) {
		// TODO Auto-generated method stub
		return faultDao.detailFault(fault);
	}

	public List<Fault> getFaultList(Map condition, PageBean page) {
		// TODO Auto-generated method stub
		return faultDao.getFaultList(condition, page);
	}

	public int getFaultListCount(Map condition) {
		// TODO Auto-generated method stub
		return faultDao.getFaultListCount(condition);
	}

	public void modifyFault(Fault fault) {
		// TODO Auto-generated method stub
		faultDao.modifyFault(fault);
	}

}
